package io.renren.dao;

import io.renren.common.dao.BaseDao;
import io.renren.common.entity.XlsUserEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 用户
 *
 * @author Mark sunlightcs@gmail.com
 * @since 1.0.0 2020-03-28
 */
@Mapper
public interface XlsUserDao extends BaseDao<XlsUserEntity> {
    XlsUserEntity getUserByMobile(String mobile);

    XlsUserEntity getUserByUsername(@Param("username") String username);

    XlsUserEntity getUserByUserId(Long userId);

    int registerUsers(XlsUserEntity user);

    List<XlsUserEntity> fans(Long userId);

    XlsUserEntity selectUserByUserPhone(@Param("mobile") String userPhone);
}